export default class GameRoot extends Laya.Script {
    /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/
    public intType: number = 1000;
    /** @prop {name:numType, tips:"数字类型示例", type:Number, default:1000}*/
    public numType: number = 1000;
    /** @prop {name:strType, tips:"字符串类型示例", type:String, default:"hello laya"}*/
    public strType: string = "hello laya";
    /** @prop {name:boolType, tips:"布尔类型示例", type:Bool, default:true}*/
    public boolType: boolean = true;
    // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    
    constructor() { 
        super(); 
    }
    
    onAwake()
    {
        console.log("Hello World");
    }
}

class PETimeTask
{
    public tId:number;
    public delayTime:number;
    public callBack:Function;
    public count:number;
    public delay:number;
    constructor(tID:number,delayTime:number,callBack:Function,count:number,delay:number)
    {
        this.tId = tID;
        this.delayTime = delayTime;
        this.callBack = callBack;
        this.count = count;
        this.delay = delay;
    }
}

enum PETimeUnit
{
    MilliSecond,
    Second,
    Minute,
    Hour,
    Day
}